package com.sys.app.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;


import java.io.Serializable;


public class BaseEntity implements Serializable {

    /*long类型返回前端精度丢失*/
//    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "CREATE_TIME",fill = FieldFill.INSERT)
    private String createTime;

    @TableField(value = "CREATOR",fill = FieldFill.INSERT)
    private Long creator;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "LAST_OPERATE_TIME",fill = FieldFill.INSERT_UPDATE)
    private String lastOperateTime;


    @TableField(value = "LAST_OPERATOR",fill = FieldFill.INSERT_UPDATE)
    private Long lastOperator;

    @TableField(value = "IF_DELETE",fill = FieldFill.INSERT)
    @TableLogic
    private Integer ifDelete;

    @TableField(value = "REMARK")
    private String remark;

    @TableField(value = "VERSION",fill = FieldFill.INSERT)
    private Integer version;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public Long getCreator() {
        return creator;
    }

    public void setCreator(Long creator) {
        this.creator = creator;
    }

    public String getLastOperateTime() {
        return lastOperateTime;
    }

    public void setLastOperateTime(String lastOperateTime) {
        this.lastOperateTime = lastOperateTime;
    }

    public Long getLastOperator() {
        return lastOperator;
    }

    public void setLastOperator(Long lastOperator) {
        this.lastOperator = lastOperator;
    }

    public Integer getIfDelete() {
        return ifDelete;
    }

    public void setIfDelete(Integer ifDelete) {
        this.ifDelete = ifDelete;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }
}
